package com.example.demo.shiro;

import java.util.Date;

import org.apache.shiro.authc.UsernamePasswordToken;

import com.alibaba.druid.sql.visitor.functions.Now;

@SuppressWarnings("serial")
public class ShiroSimpleJwtToken extends UsernamePasswordToken{

	/**
	 * 用户编号
	 */
	private String userId;
	
	public String getUserId() {
		return userId;
	}
	
	public void setUserId(String userId) {
		this.userId=userId;
	}

	/**
	 * 过期时间
	 */
    private Date expireTime;
	
	public Date getExpireTime() {
		return expireTime;
	}
	
	public void setExpireTime(Date expireTime) {
		this.expireTime=expireTime;
	}
	
	public ShiroSimpleJwtToken() {
		
	}
	
	public ShiroSimpleJwtToken(final String username, final String password, final boolean rememberMe) {
		super(username,password,rememberMe);		
		expireTime=new Date();
	}	
	
	public ShiroSimpleJwtToken(final String username, final String password, final Date expireTime, final boolean rememberMe) {
		super(username,password,rememberMe);		
		this.expireTime=expireTime;
	}
	
}
